
def calculate_consumption(power, time):
    return (power * time) / 1000

consumptions = []

for i in range(3):
    print(f"请输入第{i + 1}个人的数据:")
    power = float(input("用电功率(w): "))
    time = float(input("用电时长(h): "))

    consumption = calculate_consumption(power, time)
    consumptions.append(consumption)

for i, consumption in enumerate(consumptions):
    print(f"第{i + 1}个人的每月用电量是: {consumption:.2f} kW·h")